package com.tools.data.date;
/**
 * date包下所有常量的定义与说明
 */

/**
 * @author szn256
 * @version 0.1
 */
public class Information {

    /**
     * 构建年月日的格式
     */
    public static final String FORMATS_FOR_DATE_0 = "yyyyMMdd";
    public static final String FORMATS_FOR_DATE_1 = "yyyy-MM-dd";
    public static final String FORMATS_FOR_DATE_2 = "yyyy/MM/dd";
    public static final String FORMATS_FOR_DATE_3 = "yyyy|MM|dd";
    public static final String FORMATS_FOR_DATE_4 = "yyyy年MM月dd日";

    public static String getFormatsForDate(int type) {
        String string;
        switch (type) {
            case 0: {
                string = FORMATS_FOR_DATE_0;
                break;
            }
            case 1: {
                string = FORMATS_FOR_DATE_1;
                break;
            }
            case 2: {
                string = FORMATS_FOR_DATE_2;
                break;
            }
            case 3: {
                string = FORMATS_FOR_DATE_3;
                break;
            }
            case 4: {
                string = FORMATS_FOR_DATE_4;
                break;
            }
            default: {
                string = FORMATS_FOR_DATE_0;
                break;
            }
        }
        return string;
    }
}
